package edu.pku.hawk.service.bo;

import java.io.Serializable;
import java.sql.Timestamp;

public class RowSensorData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2771420509814116284L;
	public int sensorId;
	public Object value;
	public Timestamp time;

	public RowSensorData() {
	}

	public RowSensorData(int sensorId, Object value, Timestamp time) {
		this.sensorId = sensorId;
		this.value = value;
		this.time = time;
	}

	public int getsensorId() {
		return sensorId;
	}

	public Object getvalue() {
		return value;
	}

	public Timestamp gettime() {
		return time;
	}

	public static final RowSensorData Empty = new RowSensorData(-1, 0, new Timestamp(1000));
	public static final RowSensorData Default = new RowSensorData(1, 1, new Timestamp(System.currentTimeMillis()));
}
